﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using NetDimension.Weibo;

namespace WeiboAutomation
{
    static class Program
    {
        static string AppKey = "2288645405";
        static string AppSecret = "7c3a73457e007bdc26f5b955a2d514e8";
        static string CallbackUrl = "https://api.weibo.com/oauth2/default.html";

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            OAuth oauth = new OAuth(AppKey, AppSecret, CallbackUrl);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var LoginForm = new frmLogin(oauth);
            if (LoginForm.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new frmWeibo(oauth));
            }
        }
    }
}
